<?php
	class Regex
	{
		function Parce($arr, $content)
		{
			$ret  =array();
			foreach($arr as $key => $val)
			{
				if(!preg_match($val, $content,$matches) || sizeof($matches) < 2)
					$ret[$key] = '';
				else 
					$ret[$key] = $matches[1];
			}
			return $ret;
		}
	}
?>